﻿using PLC.Interface.Stations;
using System.Windows;
using YWM;
using YWM.Session;

namespace Framework.WpfTest
{
    /// <summary>
    /// MainWindow.xaml 的交互逻辑
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
            YApp.CreateBuilder().Build<PLCModule>();
            ISession session = YApp.Resolve<ISession>();
            session.SubjectId = 2;
            A a = YApp.Resolve<A>();
            a.Hello();
            
        }

        private async void Button_Click(object sender, RoutedEventArgs e)
        {
            IStationAppService stationAppService = YApp.Resolve<IStationAppService>();
            var list = await stationAppService.GetTopList();
        }
    }
}
